<?php
namespace Home\Controller;

use Think\Controller;

/**
*@desc 普通用户后台-报告控制器
*/
class UserReportController extends CommonController {
    
    //可下载报告列表-我的报告
    public function reportlist(){
    	$this->display('list');
    }

    //报告订单列表数据-ajax
    public function ajaxReportList(){
    	$page = I('post.page',1,'intval');

    	$reportOrderModel = D('ReportOrders');
        $uid = session('uid');
    	$list = $reportOrderModel->getBuyReportList($uid,$page);
        
    	$this->ajaxReturn( array('status'=>200,'data'=>$list,'msg'=>'Ok') );
    }

}
